#ifndef DATAPRO_H
#define DATAPRO_H
#include "Beans/userinfobean.h"
#include<QJsonDocument>
#include "qjsonobject.h"
#include "Beans/realtimeindex.h"
#include "Beans/psychologyindex.h"
// #include "Beans/groupdatabenas.h"

#include "qlist.h"
#include "Beans/battledatabeans.h"
// #include "Beans/databean.h"
#include<Beans/groupdatabeans.h>
#include<Beans/datainfobean.h>

#include "datamanager.h"
#include "Beans/battledatabeans.h"
class DataPro
{
public:
    DataPro();
    UserInfoBean Json2UserInfoBean(QJsonObject qjo);
    RealTimeIndex Json2RealTimeIndex(QJsonObject qjo);
    PsychologyIndex Json2PsychologyIndex(QJsonObject qjo);
    GroupDataBeans JsonObject2GroupDataBean(DATAINFO_TABLE_DATA data);
    BattleDataBeans JsonObject2BattleDataBean(DATAINFO_TABLE_DATA data);
    QList<double> JsonArray2Qlist(QJsonObject qjo,QString key);
    QList<QString> JsonArray2Qlist_s(QJsonObject qjo,QString key);
};

#endif // DATAPRO_H
